package org.cfx.org.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import org.cfx.org.query.EmployeeQuery;


import java.io.Serializable;
import java.util.List;

/**
 * @author RTX 9090
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("t_org_employee")
public class Employee implements Serializable{

    private static final long serialVersionUID = 5511011316958393821L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    private String password;

    private String email;

    private String headImage;

    private Integer age;

    private Long department_id;

    private Department department;

    private String deptName;

    private List<Employee> role;

//    public String getDeptName() {
//        return deptName;
//    }
//
//    public void setDeptName(String deptName) {
//        this.deptName = department.getName();
//    }
}
